package com.baidu.baidumap;

import android.graphics.Typeface;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.baidu.mapapi.map.TextOptions;

public class TextOptionsDemo extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        draw();
    }

    private void draw() {
        TextOptions textOptions = new TextOptions();
        textOptions.fontColor(0x60FF0000)
        .text("文字覆盖物")
        .position(hmPos)
        .fontSize(24)
        .typeface(Typeface.SERIF)
        .rotate(30)
        ;

        baiduMap.addOverlay(textOptions);

    }
}
